﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    Layout = null;
}
<link href="~/scripts/layui-v2.5.6/layui/css/layui.css" rel="stylesheet" />
<body>
    <div class="modal-overlay" id="addMaintenanceModal">
        <div class="modal-content">
            <div class="modal-header">
                <h3>添加盘点单</h3>
                <button class="modal-close" onclick="closeModal()">&times;</button>
            </div>
            <div class="modal-body">
                <form class="layui-form" id="addMaintenanceForm">
                    @Html.AntiForgeryToken()
                    <!-- 计划编码 -->
                    <div class="form-row">
                        <label class="layui-form-label"><span style="color: red;">*</span>盘点单编号</label>
                        <div class="layui-input-block">
                            <div class="auto-generate-container">
                                <input type="text" id="planCode" name="planCode" placeholder="请输入盘点单编号" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                    
                    <!-- 计划名称 -->
                    <div class="form-row">
                        <label class="layui-form-label"><span style="color: red;">*</span>盘点单名称</label>
                        <div class="layui-input-block">
                            <input type="text" id="planName" name="planName" placeholder="请输入盘点单名称" autocomplete="off" class="layui-input" lay-verify="required">
                        </div>
                    </div>
                    
                    <!-- 计划类型 -->
                    <div class="form-row">
                        <label class="layui-form-label"><span style="color: red;">*</span>盘点类型</label>
                        <div class="layui-input-block">
                            <select id="planType" name="planType" lay-verify="required">
                                <option value="">请选择盘点类型</option>
                                <option value="定期盘点">定期盘点</option>
                                <option value="不定期盘点">不定期盘点</option>
                                <option value="全面盘点">全面盘点</option>
                                <option value="重点盘点">重点盘点</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-row">
                        <label class="layui-form-label">盘点日期</label>
                        <div class="layui-input-block">
                            <input type="text" id="startDate" name="startDate" placeholder="请选择盘点日期" autocomplete="off" class="layui-input" readonly>
                        </div>
                    </div>
                    
                    <!-- 结束日期 -->
                    <div class="form-row">
                        <label class="layui-form-label">结束日期</label>
                        <div class="layui-input-block">
                            <input type="text" id="endDate" name="endDate" placeholder="请选择结束日期" autocomplete="off" class="layui-input" readonly>
                        </div>
                    </div>
                    
                    <!-- 状态 -->
                    <div class="form-row">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <select id="status" name="status" disabled>
                                <option value="草稿" selected>草稿</option>
                                <option value="已确认">已确认</option>
                                <option value="审批中">审批中</option>
                                <option value="已审批">已审批</option>
                                <option value="已完成">已完成</option>
                                <option value="已拒绝">已拒绝</option>
                                <option value="已完成生成工单">已完成生成工单</option>
                            </select>
                        </div>
                    </div>
                    
                    <!-- 备注 -->
                    <div class="form-row">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea id="remarks" name="remarks" placeholder="请输入内容" class="layui-textarea" rows="3"></textarea>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="layui-btn layui-btn-primary" onclick="closeModal()">取消</button>
                <button type="button" class="layui-btn" onclick="saveMaintenance()">保存</button>
            </div>
        </div>
    </div>
</body>
<script src="~/scripts/jquery-3.4.1.min.js"></script>
<script src="~/scripts/layui-v2.5.6/layui/layui.js"></script>
<script>

</script>
